//
// Created by 86138 on 2025/6/29.
//
#include <iostream>

using namespace std;

int gcd(int a, int b) {
    if (b == 0) {
        return a;
    }
    return gcd(b, a % b);
}

int main() {
    int a = 56, b = 98;
    int result = gcd(a, b);
    cout << result << endl;

    return 0;
}